package com.fernfx.xingtan.contacts.contract;

import android.widget.ListView;

import com.fernfx.xingtan.common.base.BaseModel;
import com.fernfx.xingtan.common.base.BasePresenter;
import com.fernfx.xingtan.common.base.BaseView;
import com.fernfx.xingtan.common.network.IRequestCallback;
import com.fernfx.xingtan.contacts.NewFriendsAdapter;
import com.fernfx.xingtan.contacts.entity.NewFriendsEntity;
import com.fernfx.xingtan.main.entity.ContactsInfoEntity;
import com.fernfx.xingtan.main.ui.ContactsInfoFragment;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by admin on 2018/8/7.
 */

public interface NewFriendsContract {
    interface View extends BaseView{
        void getRequestFriends();

        ListView getFriendsInfoLiv();
    }

    interface Presenter extends BasePresenter{
        void getRequestFriends();

        List<NewFriendsEntity.ObjBean.UserRelationVOListBean> getUserRelationVOList();

        NewFriendsAdapter getNewFriendsAdapter();

        List<NewFriendsEntity.ObjBean.UserRelationVOListBean> getCacheUserRelationVOList();

        void operationAddFriends(final NewFriendsAdapter newFriendsAdapter, final NewFriendsEntity.ObjBean.UserRelationVOListBean userRelationVOListBean,
                                 Map<String, Object> requestArgsMap,NewFriendsAdapter.StatusEntity statusEntity);

        void setContactsInfoList(ArrayList<ContactsInfoEntity.ObjBean.RecordsBean> contactsInfoList);
    }

    interface Model extends BaseModel{
        void getRequestFriends(IRequestCallback iRequestCallback);

        void operationAddFriends(Map<String, Object> requestArgsMap,IRequestCallback iRequestCallback);
    }
}
